<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css?1" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css?8" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
	<link href="/public/css/other.css?<?php echo time(); ?>" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
	//全局变量
	var GV = {
	    ROOT: "/",
	    WEB_ROOT: "/",
	    JS_ROOT: "public/js/",
	    APP:'<?php echo (MODULE_NAME); ?>'/*当前应用名*/
	};
	</script>
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/jquery.quicksearch.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
    <script>
    	$(function(){
    		$("[data-toggle='tooltip']").tooltip();
    	});
    </script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="<?php echo U('AdminDriver/index');?>">驾驶员信息</a></li>
			<li class="active"><a href="<?php echo U('AdminDriver/add',array('id'=>empty($item['id'])?'':$item['id']));?>" target="_self">添加驾驶员</a></li>
		</ul>
		<form action="<?php echo U('AdminDriver/add_post');?>" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data" onsubmit="return checkform();">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
                        <?php if($user_model == 4 || $user_model == 5): ?><tr>
                            <th>物流公司<span class="form-required">*</span></th>
                            <td>
                                <select name="lid" id="lid">
                                    <?php if(is_array($logistics_list)): foreach($logistics_list as $key=>$vo): ?><option value="<?php echo ($vo["id"]); ?>" <?php if($vo['id'] == $item['lid']): ?>selected<?php endif; ?>><?php echo ($vo["logistics_name"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </td>
                        </tr><?php endif; ?>

						<tr>
							<th>姓名<span class="form-required">*</span></th>
							<td><input type="text" class="require" name="driver_name" id="driver_name" value="<?php echo ($item["driver_name"]); ?>" style="width: 400px" placeholder="请输入姓名"> </td>
						</tr>
                        <tr>
                            <th>生日<span class="form-required">*</span></th>
                            <td><input type="text" name="birth" id="birth" value="<?php if(empty($item['birth'])): echo date('Y-m-d',time()); else: echo ($item["birth"]); endif; ?>" class="js-date require" style="width: 400px" > </td>
                        </tr>
                        <tr>
                            <th>年龄<span class="form-required">*</span></th>
                            <td><input type="text" name="age" class="require number" id="age" value="<?php echo ($item["age"]); ?>" style="width: 400px" placeholder="请输入年龄"> </td>
                        </tr>
                        <tr>
                            <th>性别<span class="form-required">*</span></th>
                            <td>
                                <input name="gender" type="radio" value="1" <?php if($item['gender'] == 1): ?>checked<?php endif; ?> />&nbsp;男&nbsp;&nbsp;
                                <input name="gender" type="radio" value="2" <?php if($item['gender'] != 1): ?>checked<?php endif; ?> />&nbsp;女
                            </td>
                        </tr>
                        <tr>
                            <th>驾驶证号码<span class="form-required">*</span></th>
                            <td><input type="text" class="require" name="driver_licence" id="driver_licence" value="<?php echo ($item["driver_licence"]); ?>" style="width: 400px" placeholder="请输入驾驶证号码"> </td>
                        </tr>
                        <tr>
                            <th>手机号<span class="form-required">*</span></th>
                            <td><input type="text" class="require phone" name="phone" id="phone" value="<?php echo ($item["phone"]); ?>" style="width: 400px" placeholder="请输入手机号"> </td>
                        </tr>
                        <tr>
                            <th>身份证<span class="form-required">*</span></th>
                            <td><input type="text" name="identify" class="require" id="identify" value="<?php echo ($item["identify"]); ?>" style="width: 400px" placeholder="请输入身份证"> </td>
                        </tr>
                        <tr>
                            <th>紧急联系电话<span class="form-required">*</span></th>
                            <td><input type="text" name="emerg_phone" class="require" id="emerg_phone" value="<?php echo ($item["emerg_phone"]); ?>" style="width: 400px" placeholder="请输入紧急联系电话"> </td>
                        </tr>
                        <tr>
                            <th>通信地址<span class="form-required">*</span></th>
                            <td><input type="text" name="address" class="require" id="address" value="<?php echo ($item["address"]); ?>" style="width: 400px" placeholder="请输入通信地址"> </td>
                        </tr>

                    </table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="<?php echo ($item["id"]); ?>"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="<?php echo U('AdminDriver/index');?>">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="/public/js/common.js"></script>

	</body>
</html>